package com.ruoyi.keep.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 应用管理对象 mnt_app
 *
 * @author ruoyi
 * @date 2020-09-27
 */
public class MntApp extends BaseEntity {

private static final long serialVersionUID=1L;

    /** ID */
    private Long appId;

    /** 应用名称 */
    @Excel(name = "应用名称")
    private String name;

    /** 上传目录 */
    @Excel(name = "上传目录")
    private String uploadPath;

    /** 部署路径 */
    @Excel(name = "部署路径")
    private String deployPath;

    /** 备份路径 */
    @Excel(name = "备份路径")
    private String backupPath;

    /** 应用端口 */
    @Excel(name = "应用端口")
    private Long port;

    /** 启动脚本 */
    @Excel(name = "启动脚本")
    private String startScript;

    /** 部署脚本 */
    @Excel(name = "部署脚本")
    private String deployScript;

    /** 设置ID */
    public void setAppId(Long appId){
        this.appId = appId;
    }

    /** 获取ID */
    public Long getAppId(){
        return appId;
    }

    /** 设置应用名称 */
    public void setName(String name){
        this.name = name;
    }

    /** 获取应用名称 */
    public String getName(){
        return name;
    }

    /** 设置上传目录 */
    public void setUploadPath(String uploadPath){
        this.uploadPath = uploadPath;
    }

    /** 获取上传目录 */
    public String getUploadPath(){
        return uploadPath;
    }

    /** 设置部署路径 */
    public void setDeployPath(String deployPath){
        this.deployPath = deployPath;
    }

    /** 获取部署路径 */
    public String getDeployPath(){
        return deployPath;
    }

    /** 设置备份路径 */
    public void setBackupPath(String backupPath){
        this.backupPath = backupPath;
    }

    /** 获取备份路径 */
    public String getBackupPath(){
        return backupPath;
    }

    /** 设置应用端口 */
    public void setPort(Long port){
        this.port = port;
    }

    /** 获取应用端口 */
    public Long getPort(){
        return port;
    }

    /** 设置启动脚本 */
    public void setStartScript(String startScript){
        this.startScript = startScript;
    }

    /** 获取启动脚本 */
    public String getStartScript(){
        return startScript;
    }

    /** 设置部署脚本 */
    public void setDeployScript(String deployScript){
        this.deployScript = deployScript;
    }

    /** 获取部署脚本 */
    public String getDeployScript(){
        return deployScript;
    }

    @Override
    public String toString(){
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
        .append("appId" ,getAppId())
        .append("name" ,getName())
        .append("uploadPath" ,getUploadPath())
        .append("deployPath" ,getDeployPath())
        .append("backupPath" ,getBackupPath())
        .append("port" ,getPort())
        .append("startScript" ,getStartScript())
        .append("deployScript" ,getDeployScript())
        .append("createBy" ,getCreateBy())
        .append("updateBy" ,getUpdateBy())
        .append("createTime" ,getCreateTime())
        .append("updateTime" ,getUpdateTime())
        .toString();
    }
}
